# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-crypt-blowfish
pkgver=2.14
pkgrel=14
pkgdesc="Perl/CPAN Module Crypt::Blowfish : XSbased implementation of Blowfish"
arch=("loong64" "x86_64")
url="https://search.cpan.org/dist/Crypt-Blowfish"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/D/DP/DPARIS/Crypt-Blowfish-$pkgver.tar.gz")
sha256sums=('46b3431ffb6bf5b9cb359f79565d48407e652ad2b04fdf5ca62a69e7197a67b1')

build() {
  cd "$srcdir"/Crypt-Blowfish-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor 
  make
}

package() {
  cd "$srcdir"/Crypt-Blowfish-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
